import axios from '@/utils/request'
export const department = () => {
  return axios({
    url: '/company/department'
  })
}
export const Deldepartment = (id) => {
  return axios({
    method: 'DELETE',
    url: `/company/department/${id}`
  })
}
export const addDeldepartment = (data) => {
  return axios({
    method: 'POST',
    url: `/company/department`,
    data
  })
}
export const ByIdgetdepartment = (id) => {
  return axios({

    url: `/company/department/${id}`

  })
}
export const Editdepartment = (data, id) => {
  return axios({
    method: 'PUT',
    url: `/company/department/${id}`,
    data
  })
}
